import React from 'react';
import { BrowserRouter as Router, Redirect, Route, NavLink, Switch } from 'react-router-dom'

//孙乐
import Home from './pages/Home/Home'//首页
import Activity from './pages/Activity/Activity'//活动页面
import ActivityDetail from './pages/Activity/ActivityDetail'//活动详情页
//许洁茹
import My from './pages/My/My' //我的页面
import Sharefabu from './pages/Share-fabu/Sharefabu'; //动态发布页面
import Share from './pages/Share/Share' //动态页面
import SayDetail from './pages/SayDetail/Saydetail' //动态详情页面
import Mysay from './pages/MyDetail/Mysay' //我的发布页面
import Mylike from './pages/MyDetail/Mylike' //我的点赞页面
import MyDetail from './pages/MyDetail/Mydetail' //修改信息详情页
//王冰
import Confession from './pages/Confession/Confession'//表白页面 “桃花遇”
import Login from './pages/Login/Login'//登录页面
import Logon from './pages/Logon/Logon'//注册页面
import Express from './pages/Express/Express'//表白小技巧页
import Details from './pages/Details/Details'//表白的详情页
import Addconf from './pages/Addconfession/Addconf'//发布表白页面
//程思雨
import Exchange from './pages/Exchange/Exchange'//物品置换页面
import AddExchange from './pages/AddExchange/AddExchange'
import Xiangqing from './pages/Xiangqing/Xiangqing'
import Superway1 from './pages/Superway1/Superway1'//学霸之路1“找学友”
import Superway2 from './pages/Superway2/Superway2'//学霸之路2“找资料”
import Superway3 from './pages/Superway3/Superway3'//学霸之路3“小纸条”
//CSS
import './App.css';

class App extends React.Component {

	constructor(props) {
	  super(props);
	  this.state = {

	  };
	}

	render() {
        return (
          <Router>
            <Switch>
              <Route exact path='/' component={Home} />{/* 首页 */}
              <Route path='/Activity' component={Activity} />{/* 活动页面 */}
              <Route path='/ActivityDetail' component={ActivityDetail} />{/* 活动详情页 */}

              <Route path='/My' component={My} />{/*  “我的”页面 */}
              <Route path='/Mysay' component={Mysay} />{/*  我的发布页面 */}
              <Route path='/Mylike' component={Mylike} />{/*  我的点赞页面 */}
              <Route path='/MyDetail' component={MyDetail} />{/*修改个人信息详情页面 */}
              <Route path='/Sharefabu' component={Sharefabu} />{/*发布动态页面 */}
              <Route path='/Share' component={Share} />{/* 动态页面 */}
              <Route path='/SayDetail' component={SayDetail} />{/*动态详情页面 */}
              
              <Route path='/Confession' component={Confession} />{/* 表白页面 “桃花遇” */}
              <Route path='/Login' component={Login} />{/* 登录页面 */}
              <Route path='/Logon' component={Logon} />{/* 注册页面 */}
              <Route path='/Express' component={Express} />{/* 表白的四个小技巧页” */}
              <Route path='/Details' component={Details} />{/* 表白的详情页 */}
              <Route path='/Addconf' component={Addconf} />{/* 表白的发布页 */}

              <Route path='/Exchange' component={Exchange} />{/* 物品置换页面 */} 
              <Route path='/AddExchange' component={AddExchange} />
              <Route path='/Xiangqing' component={Xiangqing} />
              <Route path='/Superway1' component={Superway1} />{/* 学霸之路1“找学友” */}
              <Route path='/Superway2' component={Superway2} />{/* 学霸之路2“找资料” */}
              <Route path='/Superway3' component={Superway3} /> {/* 学霸之路3“小纸条” */}
            </Switch>
          </Router>          
        )
  }
}

export default App;
